import {store} from "@/init/vuex.js";

export function getState(moduleName, stateName) {
    return store.state[moduleName][stateName]
}

export function getGetter(moduleName, getterName) {
    return store.getters[`${moduleName}/${getterName}`]
}

export function setMutation(moduleName, mutationName, payload) {
    store.commit(`${moduleName}/${mutationName}`, payload)
}

export function setAction(moduleName, actionName, payload) {
    store.dispatch(`${moduleName}/${actionName}`, payload)
}